﻿using System;
using System.Collections.Generic;
using System.IO;

namespace Greve
{
    enum JumpClass
    {
        International = 0 ,
        AClass,
        BClass,
        CClass,
        DClass,
        EClass,
    }
    public static class Functions 
    {
        public static List<string> readString()
        {
            List<string> line = new List<string>();
            try
            {
                using (StreamReader sr = new StreamReader("simhopp.txt"))
                {
                    while(!sr.EndOfStream)
                        line.Add(sr.ReadLine());
                }
            }
            catch (Exception e)
            {
                Console.WriteLine("The file could not be read:");
                Console.WriteLine(e.Message);
            }
            return line;
        }
        public static int calculateScore()
        {
            int score = 0;
            return score;
        }
        public static double getPointsFromJudge(double i)
        {
            double score = i;
            return score;
        }
        /*
        public void waitForJudges(Judge[] lst)
        {
            bool doneVoting = false;
            while(!doneVoting)
            {
                foreach(Judge i in lst)
                {
                    if (!i._score.Equals(-1))
                    {
                        doneVoting = true;
                    }
                    else
                        doneVoting = false;
                }
            }
        }
        public void resetJudges(Judge[] lst)
        {
            for (int i = 0; i < lst.Length; i++ )
            {
                lst[i]._score = -1;
            }
        }
        public void startJump(Judge[] lst)
        {
            resetJudges(lst);
            waitForJudges(lst);
        }*/
    }
}